package io.gitee.redismq.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author: 孙浩
 * @since: 2025-03-05 10:33:20
 */
@ConfigurationProperties(prefix = "redis.stream")
@Data
public class RedisStreamProperties {
    private String host = "localhost";          // Redis 地址
    private int port = 6379;             // Redis 端口
    private String password;
    private int database = 0;
    private String streamKey;     // Stream 键名（如 "app-stream"）
    private String consumerGroup; // 消费者组名（如 "app-group"）
    private String consumerName;  // 消费者名称（如 "consumer-1"）
    private long blockTimeoutMs = 50000; // 阻塞等待时间（毫秒）
    /**
     * 核心线程池大小
     */
    private Integer corePoolSize = 10;
    /**
     * 最大线程数
     */
    private Integer maxPoolSize = 30;
    /**
     * 打印banner
     */
    private Boolean isPrint = true;
}
